package com.gyc.simple.sysuser.controller;

import java.util.Map;
import java.util.Optional;

public class CommonMethod {
    protected static Map checkPageParam(Map paraMap){
        Optional.ofNullable(paraMap).ifPresent(val -> {
            paraMap.put("pageNum", Optional.ofNullable(paraMap.get("pageNum")).orElse(1));
            paraMap.put("pageSize", Optional.ofNullable(paraMap.get("pageSize")).orElse(7));
        });
        return paraMap;
    }
}
